<?php


namespace dsp\builder;


class Main extends \kernel\BaseMain
{

    public function execute($choice = 'all')
    {
        $director = new Director();

        $builder = new ConcreteBuilder1();
        $director->setBuilder($builder);

        echo 'Standard basic product' . PHP_EOL;
        $director->buildMinProduct();
        $builder->getProduct()->listParts();

        echo 'Standard full product' . PHP_EOL;
        $director->buildFullProduct();
        $builder->getProduct()->listParts();

        echo 'Custom product' . PHP_EOL;
        $builder->producePartC();
        $builder->producePartB();
        $builder->getProduct()->listParts();
    }


}